#include <iostream>
using namespace std;

class Point {
  public:
    Point(int a = 0, int b = 0) : x(a), y(b) {}
    int GetX() const { return x; }
    int GetY() const { return y; }
    void SetX(int a) { x = a; }
    void SetY(int a) { y = a; }

  private:
    int x;
    int y;
};

int main() {
    Point u;
    const Point v(6, 8);

    cout << u.GetX() << endl;
    u.SetX(16);
    cout << u.GetX() << endl;
    u.SetY(18);
    cout << u.GetY() << endl;

    cout << v.GetX() << endl;
    cout << v.GetY() << endl;

    return 0;
}
